package com.example.safehome;

import org.litepal.annotation.Column;
import org.litepal.crud.LitePalSupport;

public class CoDetectorDB extends LitePalSupport {
    //1.一氧化碳浓度
    @Column(unique = true, defaultValue = "0.00")
    private double coLevel;

    //2.一氧化碳超标地点
    @Column(index = true)
    private String exceedPosition;

    //3.检测器是否运行
    @Column(unique = true, defaultValue = "true")
    private static boolean isRunning;

    //4.系统是否运行
    @Column(unique = true, defaultValue = "true")
    private boolean systemStatus;

    //获取一氧化碳浓度
    public double getCoLevel() {
        return coLevel;
    }

    //设置一氧化碳浓度
    public void setCoLevel(double coLevel) {
        this.coLevel=coLevel;
    }

    //获取一氧化碳超标地点
    public String getExceedPosition() {
        return exceedPosition;
    }

    //设置一氧化碳超标地点
    public void setExceedPosition(String exceedPosition) {
        this.exceedPosition=exceedPosition;
    }

    //获取检测器运行状态
    public boolean getIsRunning() {
        return isRunning;
    }

    //设置检测器运行状态
    public void setIsRunning(boolean isRunning) {
        this.isRunning=isRunning;
    }

    //获取系统运行状态
    public boolean getSystemStatus() {
        return systemStatus;
    }

    //设置系统运行状态
    public void setSystemStatus(boolean systemStatus) {
        this.systemStatus=systemStatus;
    }
}
